﻿using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase;

namespace ZilLion.Service.WeChatMall.Domain.Responses
{
    public class CheckSendRangeResponse : ResponseBase
    {
        /// <summary>
        ///     两点之间最短距离
        /// </summary>
        [JsonProperty("isInRange")]
        public bool IsInRange { get; set; }

      
    }


    public class MapShortestPathDto
    {
        /// <summary>
        ///     结果状态值，值为0或1
        ///     0：请求失败；1：请求成功
        /// </summary>
        [JsonProperty("status")]
        public string Status { get; set; }

        /// <summary>
        ///     返回状态说明
        /// </summary>
        [JsonProperty("info")]
        public string Info { get; set; }

        /// <summary>
        ///     返回状态说明code
        /// </summary>
        [JsonProperty("infocode")]
        public string Infocode { get; set; }

        /// <summary>
        ///     驾车路径规划方案数目
        /// </summary>
        [JsonProperty("count")]
        public string Count { get; set; }

        /// <summary>
        ///     驾车路径规划信息列表
        /// </summary>
        [JsonProperty("route")]
        public Route Route { get; set; }
    }

    public class Route
    {
        /// <summary>
        ///     起点坐标
        /// </summary>
        [JsonProperty("origin")]
        public string Origin { get; set; }

        /// <summary>
        ///     终点坐标
        /// </summary>
        [JsonProperty("destination")]
        public string Destination { get; set; }

        /// <summary>
        ///     paths
        /// </summary>
        [JsonProperty("paths")]
        public Path[] Paths { get; set; }
    }

    public class Path
    {
        /// <summary>
        ///     行驶距离	单位：米
        /// </summary>
        [JsonProperty("distance")]
        public string Distance { get; set; }

        /// <summary>
        ///     预计行驶时间
        /// </summary>
        [JsonProperty("duration")]
        public string Duration { get; set; }

        /// <summary>
        ///     导航策略
        /// </summary>
        [JsonProperty("strategy")]
        public string Strategy { get; set; }

        /// <summary>
        ///     此导航方案道路收费
        /// </summary>
        [JsonProperty("tolls")]
        public string Tolls { get; set; }

        /// <summary>
        ///     收费路段距离
        /// </summary>
        [JsonProperty("toll_distance")]
        public string TollDistance { get; set; }
    }
}